Repository navigation
docs(adr): ADR-0156 a compiled metadata answer is cached only when every source counts its own changes - #34464
Conversation
…ery source counts its own changes Rewrites the overlay cache's conditional position to point at it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oyZgRX9Qc1ZHsMRQp
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp Final head for review: |
📓 Docs Drift Check
What this run could not see
Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5kcNtBBExhz4DZqYbi 席位核对 · REWORK (L1, first read; one sentence) · Head-sha: 31a8f7c · 2026-11-16T20:54ZL1 thread L1-a, reading the head named in 6928943162 against ruling 6920925378 (B, 「B 只缓存所有人共用的部分」) and its execution items. The diff has 3 files, +118/−4: the new ADR-0156, the regenerated ADR README, and a comment-only edit in What holds (checked against the tree and the cited records)
Must fix (one sentence)
Checks and landing
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oyZgRX9Qc1ZHsMRQp
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp Re: L1-a 6929064988, M1. New head |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 8f788dc · 2026-11-16T20:57Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: First record on this PR (face ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentClaims about current code, read in the tree, all hold: the row cache's bound is Caller split (D3): the route's First consumer and plan: the third change on the card, after this record is approved; order C, ADR, B as amendment 2 has it. S1 (should-fix) — D5 lets the time bound be renewed after a confirmation that reads the in-process counters and "the stored rows" only, while D1(b) says the bound exists for three kinds of change, one of them "a deployment that edits a file under a running process", and names engine-bypassing writes without limiting them to N1 (nit) — Consequences says #34437 "already obeys this record"; that memo has no time bound, and D1 as defined (more than one source) does not cover it. Say it follows D2 and sits outside D1. Implemented-by: VERDICT: PASS |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oyZgRX9Qc1ZHsMRQp
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp Re: review#2 6929302407, S1. New head |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head f35cb07 · 2026-11-16T21:08Z |
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5kcNtBBExhz4DZqYbi 席位核对 · ACCEPT (L1, delta) · Head-sha: f35cb07 · 2026-11-16T21:08ZL1 thread L1-a, reading the delta
Landing: Tier H. L1 is done. Once review#2 passes at this head, the seat hands it to Leehom for approval. |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: Delta round. Prior record 6929302407 read PASS at ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgment
Evidence. D5's new second paragraph carries the required text in full: the confirmation "must observe every out-of-process change D1 (b) names for the sources the entry read"; an entry that read a source the confirmation cannot observe "is recompiled at its bound and never renewed; or that source makes the cache decline". Its example (a loader reading files a deployment can edit under a running process, with no watcher) is the D1(b) case the prior record cited. D7 gains "an entry that read a source the confirmation cannot observe is recompiled at its bound, not renewed (D5)", which the renewed-forever shape fails. With this, a change no counter and no confirmation read observes is bounded by one bound again, so D1's "Both, always" and ADR-0127 D4 (the TTL is the worst-case contract; nothing else is the correctness mechanism) hold on the renewal path. No new contradiction. D1: the paragraph refers to D1(b)'s list and adds nothing to it. D2: "or that source makes the cache decline" is D2's own outcome for a source the cache cannot see, and no timer is substituted for a counter (a recompile at the bound re-reads the source). D3: nothing per caller enters the cached part. D6: at No must-fix. No open should-fix. N5 (nit) — D5's first paragraph still ends "Only a moved counter or a moved store reading recompiles" and still names the one read as "(the stored rows)". The second paragraph adds a third recompile case and widens what the read must cover; its ⛔ governs, but the first paragraph now reads as exhaustive when it is not. One word ("otherwise", or "for an entry the confirmation fully observes") would align them. Carry-overN1 (nit) — unchanged, still open: Consequences says #34437 "already obeys this record". None of the six nits affects the contract; none needs a head change. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H 维护者速读Head-sha:
席位意见:建议批准。ADR 与你的裁决 B 和认领修订 2(6920972383)一致,没有承诺被撤回的 20 ms 验收。 席位核对
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 43961865677 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Leehom · project thread
Part of #34206 (the second of three changes: the cascade-delete memo #34437, merged as
d18d54bd; then this record; then the shared compile cache, per ruling 6920925378, which ordered this record first as its own pull request). The card stays open after this lands.Clause-②: no
Metadata-protocol: none
维护者速读
meta-overlay-cache.ts里那段「只缓存行集」的说明改成只约束它自己这一层,并指向本记录。docs/adr/0156-compiled-metadata-answer-cache-every-source-counts-its-own-changes.md的 D1 到 D3(规则、计数归来源自己、只缓存共用部分),再看 D5(过期后先便宜确认,不重编译)。pnpm check:adr-index && pnpm check:adr-anchors && node scripts/check-adr-links.mjs,预期全部 exit 0。What changes
docs/adr/0156-compiled-metadata-answer-cache-every-source-counts-its-own-changes.md, status Accepted on ruling 6920925378. It declares and implements nothing:content/docs/kernel/cluster.mdx§6.1 stands).ETagrun on every request. No per-caller whole-answer cache without a new ruling.getMetaItemshydration).OS_*knob,0is the uncached path with the same reads in the same order.packages/metadata-protocol/src/meta-overlay-cache.ts, comment only: the section heading now reads "Why THIS cache holds only the row set, and never the merged answer", and one paragraph says the position is about this module and that a merged-answer cache elsewhere is governed by ADR-0156. The warning against moving this cache below the merge stays.docs/adr/README.md, regenerated bypnpm adr:index(the new row; Accepted count 134).Tests
None owed: no runtime line changes. The record's D7 lists the pins the third change must carry.
Acceptance notes
metaunder 20 ms" line is withdrawn, and each change reports before and aftermetafor an immediate repeat, a 304 and a reload more than one minute later. This record has no readings of its own; the cascade-delete memo's are on perf(objectql): memoize the cascade-delete closure on the registry object revision #34437.skip-changeset: an ADR plus a comment-only edit publishes nothing.Verification
Gates (head 31a8f7c)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 55 commands derived for this diff; all 55 run locally, each exit 0, recorded asCOMMAND :: exit CODE. They includepnpm check:adr-index,pnpm check:adr-anchors,pnpm check:adr-symbol-anchors,node scripts/check-adr-links.mjs,pnpm check:issue-citations,pnpm check:doc-authoringandpnpm check:nul-bytes.node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE: "55 derived famil(ies) accounted for — 55 run, 0 NOT-MEASURED (a DERIVED zero)", exit 0.git merge-tree --write-tree origin/main HEADagainstorigin/maind5e6b20: clean (exit 0). No open pull request claims ADR-0156.pnpm lint) are read from this PR's check runs, not re-run here.!in the title, no(narrowing)arm).Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses. (CI runs it.)main, one pull request.skip-changeset); both declaration lines are filled in above.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/(docs/adr/README.mdis generated bypnpm adr:index).Generated by Claude Code